﻿using Microsoft.Extensions.DependencyInjection;
using StockUI.ViewModels;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;


namespace StockUI.Views
{
    /// <summary>
    /// Home.xaml 的交互逻辑
    /// </summary>
    public partial class Lssj : UserControl
    {
        public Lssj()
        {
            InitializeComponent();
            this.DataContext = App.Current.Services.GetService<LssjViewModel>();
        }

        private void PageBar_PageIndexChanged(object sender, RoutedPropertyChangedEventArgs<int> e)
        {
            Debug.WriteLine($"page index : {e.OldValue} => {e.NewValue}");
        }

        private void PageBar_PageSizeChanged(object sender, RoutedPropertyChangedEventArgs<int> e)
        {
            Debug.WriteLine($"page size : {e.OldValue} => {e.NewValue}");
        }
    }
}
